home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SLEEP(3) MINTLIB LIBRARY FUNCTIONS SLEEP(3)
-
-
- N✓NA✓AM✓ME✓E
- sleep, usleep - suspend execution for interval
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- unsigned sleep(unsigned seconds);
-
- void usleep(unsigned long usec); // should be of type unsigned long
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- The current process is supended from execution for the
- number of seconds (sleep) or microseconds (usleep) speci-
- fied by the argument. Sleep returns early if a signal is
- caught; after the signal handler has returned, sleep will
- return the "unslept" amount. If no signal was caught, and
- after the full amount of of time (and possibly somewhat
- longer) has passed, execution is resumed.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- a✓al✓la✓ar✓rm✓m(✓(3✓3)✓),✓, F✓Fs✓se✓el✓le✓ec✓ct✓t(✓(2✓2)✓),✓, P✓Pa✓au✓us✓se✓e(✓(2✓2)✓),✓, P✓Ps✓si✓ig✓gp✓pa✓au✓us✓se✓e(✓(2✓2)✓),✓, T✓Ta✓al✓la✓ar✓rm✓m(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- On UN*X, usleep is of type unsigned int.
-
- Under TOS or MiNT before 0.95, these routines do a busy
- wait until enough time has passed.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-